﻿using DSS.Platform.Plugin.Server;
using PluginBase;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PluginServerApp
{
    public partial class Form1 : Form
    {
        private TcpPluginServer<IPlugin> tcpPluginServer;
        private PluginService pluginService;
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.tcpPluginServer = new TcpPluginServer<IPlugin>(82);
            this.tcpPluginServer.Start();

            this.pluginService = new PluginService();
            this.pluginService.Start("workman-PC", 83);



        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.tcpPluginServer.Stop();
            this.pluginService.Stop();

        }
    }
}
